package tsb.dominio.interfaces;

import java.net.Inet4Address;

/**
 * @author Federico Gomez
 * @version 1.0
 * @created 12-Mar-2011 06:01:54 p.m.
 */
public class Serial extends InterfaceDeConeccion {

	private int clockRate;
	private final boolean duplex=true;

	public Serial(){
            super();

	}

    public Serial(boolean estado, int anchoDeBanda, IP ip, IP subnetMask, int clockRate) {
        super();
        this.estado=estado;
        this.anchoDeBanda=anchoDeBanda;
        this.ip=ip;
        this.subnetMask=subnetMask;
        this.clockRate = clockRate;
    }

    public int getClockRate() {
        return clockRate;
    }

    public void setClockRate(int clockRate) {
        this.clockRate = clockRate;
    }
    
    public String toString()
{
    String cad= "---- Interfaz Serial ----" +"\n"+
            super.toString() +
            "Duplex: "+ duplex +"\n"+
            "Clock Rate: "+ this.clockRate +"\n";
            
    return cad;
}

}